<div class="event_slide col-md-8 col-sm-8 col-xs-12">
    <div id="event-slide-carousel" class="carousel slide" data-ride="carousel">
        <!-- Indicators -->
        <ol class="carousel-indicators">
            <li data-target="#event-slide-carousel" data-slide-to="0" class="active"></li>
            <li data-target="#event-slide-carousel" data-slide-to="1" class=""></li>
            <li data-target="#event-slide-carousel" data-slide-to="2" class=""></li>
        </ol>
        <!-- Wrapper for slides -->
        <div class="carousel-inner">
            <?php
                if($category_id == 2) { $id_cate=3;}
                else if($category_id == 7) { $id_cate=8;}
                $args=array('posts_per_page'=>3,"cat"=>$id_cate,"orderby" => "DESC",'offset'=>0);
                $wp_query = new WP_Query( $args );
                $count=0;
                if ( have_posts() ) : while (have_posts()) : the_post();
            ?>
            <div class="item <?php if($count == 0) echo 'active';?>">
                <div class="event_slide_img">
                    <a href="<?php the_permalink()?>" title="<?php the_title();?>">
                        <?php
                        $args=array('alt'=>get_the_title());
                        the_post_thumbnail('full',$args); ?>
                    </a>
                    <div class="meta_date">
                        <span class="n_day"><?php the_time('d')?></span>
                        <span class="n_month"><?php the_time('m')?></span>
                    </div><!-- END META DATE -->
                </div><!-- END SLIDE IMAGES -->
                <div class="event_slide_content">
                    <h3 class="slide_title">
                        <a href="<?php the_permalink()?>" title="<?php the_title();?>"><?php the_title();?></a>
                    </h3>
                    <p><?php
                        echo get_limit_content(130);
                        ?></p>
                    <a class="view_more" href="<?php the_permalink()?>"><span></span>xem thêm</a>
                </div><!-- END SLIDE CONTENT -->
            </div><!-- END ITEM -->
            <?php
                $count++; endwhile; endif;
                wp_reset_query();
            ?>
        </div>
        <!-- Controls -->
        <a class="left carousel-control" href="#event-slide-carousel" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left"></span>
        </a>
        <a class="right carousel-control" href="#event-slide-carousel" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
    </div>
</div>